﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="NotaSalidaRecepGrid.ascx.cs" 
Inherits="UILGestion.AlmacenAdmin.NotaSalidaRecepGrid" %>

<%@ Register Assembly="CustomControls" Namespace="CustomControls" TagPrefix="cc1" %>
<script src="../../Scripts/controlGrid.js" type="text/javascript"></script>
<link href="../../css/main.css" rel="stylesheet" type="text/css" />

<asp:DataPager ID="pager" PagedControlID="ListView1" runat="server" >
    <Fields>
      <cc1:PagerField NextPageImageUrl="~/Images/arrow_right2.gif" PreviousPageImageUrl="~/images/arrow_left.gif" />
    </Fields>
</asp:DataPager>
<asp:ListView ID="ListView1" runat="server" 
OnDataBound="ListView1_DataBound" 
DataKeyNames="idInternal" onitemdatabound="ListView1_ItemDataBound">
    <LayoutTemplate>
        <table id="itemPlaceHolderContainer" border="0" runat="server" class="ms-crm-List-Header" >
            <tr id="Tr1" runat="server">
                <th id="Th1" runat="server">
     

                    <asp:LinkButton ID="lb2" CommandName="Sort" CommandArgument="numDocumento" runat="server" ForeColor="Blue">NUMERO</asp:LinkButton>
                </th>
                <th id="Th3" runat="server">
                    <asp:LinkButton ID="lb3" CommandName="Sort" CommandArgument="fecha" runat="server" ForeColor="Blue">FECHA</asp:LinkButton>
                </th>
                <th id="Th7" runat="server">
                    <asp:LinkButton ID="LinkButton5" CommandName="Sort" CommandArgument="documentoTipo" runat="server" ForeColor="Blue">T/D</asp:LinkButton>
                </th>
                <th id="Th2" runat="server">
                    <asp:LinkButton ID="LinkButton1" CommandName="Sort" CommandArgument="documentoRef" runat="server" ForeColor="Blue">DOCUMENTO</asp:LinkButton>
                </th>
                 <th id="Th5" runat="server">
                    <asp:LinkButton ID="LinkButton3" CommandName="Sort" CommandArgument="motivo" runat="server" ForeColor="Blue">ALMACEN ORIGEN</asp:LinkButton>
                </th>
                 <th id="Th8" runat="server">
                    <asp:LinkButton ID="LinkButton6" CommandName="Sort" CommandArgument="observacion" runat="server" ForeColor="Blue">OBSERVACION</asp:LinkButton>
                </th>
                 
                   
                
            </tr>
            <tr id="itemPlaceholder" runat="server">
            </tr>
        </table>



    </LayoutTemplate>
    <ItemTemplate>
        <tr style='background-color: <%# (Container.DataItemIndex % 2 == 0)?"#eee":"#fff" %>'>
            <td  width="90px">
             
                <asp:Hyperlink runat= "server"  ForeColor="Blue"
                Text='<%# DataBinder.Eval(Container.DataItem,"numDocumento").ToString()%>'  
                 Target="_self"  ID="OrdenCompra"
                NavigateUrl='<%# "~/AlmacenAdmin/NotaIngresoInsertForm.aspx?type=A&idNS=" + 
                DataBinder.Eval (Container.DataItem,"idInternal").ToString() + 
                "&idAlmacen=" + DataBinder.Eval (Container.DataItem,"idAlmacenDestino").ToString() + 
                 "&idObra=" + DataBinder.Eval(Container.DataItem,"idObraDestino").ToString()%>' 
               />   
                
            </td>
            <td  width="90px" >
                    <%# Eval("fechaStr")%> <br />
            </td  width="90px">
           
                        <td>
                <%# Eval("documentoTipo")%>
            </td>
              <td  width="90px">
                <%# Eval("documentoRef")%>
            </td>
            
            <td width="150px">
            <%# Eval("almacen")%><br />
                 
            </td>
             <td " width="450px">
            <%# Eval("observacion")%><br />
                 
           
                 
            </td>
          
          
        </tr>
    </ItemTemplate>
    <EmptyDataTemplate>
        <table id="Table1" runat="server" >
            <tr>
                <td>
                   <h2 style="font-size: x-small; color: #960818">
                        No existe Informacion.</h2>
                </td>
            </tr>
        </table>
    </EmptyDataTemplate>
</asp:ListView>



    
     